import Vue from 'vue'
import Vuex from 'vuex'
Vue.use(Vuex)

export default new Vuex.Store({
    state:{
        imgBtn:false,//发送图片按钮被点击
        chatImg:'',//聊天图片
    },
    mutations:{
        imgBtnClick(state, str){
            state.imgBtn = str;
        }, 
        changeImg(state,str){
            state.chatImg = str;
        }
    }
})